#include "Feed.h"

Feed::Feed()
{

this->date=time(NULL);	
}

Feed::Feed(TCId id,const string & url,const time_t & date)
{
	this->url=url;
	this->date=date;	
	this->id = id;
}

void Feed::setDate(const time_t & date)
{
	this->date=date;	
	
}

void Feed::setName(const string &name)
{
	this->name=name;	
	
}
void Feed::setURL(const string & url)
{
	
	this->url=url;	
}

void Feed::addNews(const News & news)
{
	this->newslist.push_back(news);
}

const TCId Feed::getId() const
{
	return this->id;
}

const string & Feed::getURL()const
{
	return this->url;	
}

const time_t & Feed::getDate()const
{
	return this->date;
		
}
const string & Feed::getName()const
{
	return this->name;
		
}
